﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ApprovalFlow.Models
{
    public class Event
    {
        /// <summary>
        /// 事件id
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 事件的名称
        /// </summary>
        public string EventName { get; set; }

        /// <summary>
        /// 事件的key
        /// </summary>
        public string EventKey { get; set; }

        /// <summary>
        /// 事件数据
        /// </summary>
        public object EventData { get; set; }

        /// <summary>
        /// 事件的时间
        /// </summary>
        public DateTime EventTime { get; set; }

        /// <summary>
        /// 事件是否已处理
        /// </summary>
        public bool IsProcessed { get; set; }


        public const string EventType = "WorkflowCore.Activity";
    }
}
